#import <Foundation/Foundation.h>
#import <CoreGraphics/CGEventTypes.h>
#import <GraphicsServices/GraphicsServices.h>

#import <UIKit/UIKit.h>
#import <UIKit/UINavigationBar.h>
#import <UIKit/UINavBarButton.h>
#import <UIKit/UINavigationItem.h>
#import <UIKit/UITransitionView.h>
#import <UIKit/UIButtonBar.h>
#import <UIKit/UIAlertSheet.h>
#import <UIKit/UITextView.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTextTableCell.h>

#import "Configuration.h" 
#import "Map.h"
#import "Location.h"

@interface WGView : UIView
{
	UINavigationBar *nbBot;
	UINavigationItem *nbBotItem;
	
	int state;
	Configuration *conf;
	
	UITransitionView *tView;
	Map *vMap;	
	Location *vLocation;	
	UIView *vPrefs;	
	UITextView *vLoading;
	
	UIPreferencesTable *tPrefs;
}

- (id)initWithFrame:(struct CGRect)frame; 

- (void)changeView:(int)view;
- (void)navigationBar:(UINavigationBar*)bar buttonClicked:(int)button;

- (void) startLoading;
- (void) stopLoading;
@end
